package org.spring.order.module.trigger.http;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.spring.order.module.domain.order.service.OrderService;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/order")
public class OrderController {
    private final OrderService orderService;

    @GetMapping("/create")
    public String createOrder(@RequestParam Long userId,
                              @RequestParam Long orderId) {
        return orderService.create(userId, orderId);
    }
}
